{extend name="homeheader:header"/}
{block name="content"}
	<link rel="stylesheet" type="text/css" href="/home/css/logistics.css" />
	<body style="overflow-x: hidden;">
		<div class="logistics">
			<div class="top">
				<a href="javascript:history.back(-1)" class="back">
					<i class="iconfont">&#xe615;</i></a>
				物流信息
			</div>
			<div class="info container">
				<p>订单编号： <span>{$list.o_code}</span>
					<p>创建订单： <span>{:date('Y-m-d H:i',$list['addtime'])}</span></p>
					<p>付款时间： <span>{:date('Y-m-d H:i',$list['o_time'])}</span></p>
			</div>
			<div class="dieno container">
				<p>物流公司： <span>{$list.o_company}</span></p>
				<p>物流单号： <span id="wuliu">{$list.o_snumber}</span><button class="bsa" onclick="copytxt()">复制</button></p>
			</div>
		</div>
	</body>
	<script type="text/javascript">
		console.log(document.getElementById("wuliu").textContent)
		function copytxt(){
            var d = document.getElementById("wuliu").textContent;
            d.select();
			document.execCommand("Copy");
            alert("已复制到剪贴板"); 
       }
	</script>
</html>
{/block}